package com.txts.road.admin.vehicleSys.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.txts.road.admin.common.annotation.Excel;
import com.txts.road.admin.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 参赛车辆对象 race_vehicle
 *
 * @author ruoyi
 * @date 2025-05-15
 */
public class raceVehicle extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    private Long id;

    /**
     * 车辆编码
     */
    @Excel(name = "车辆编码")
    private String vehicleCode;

    /**
     * 车辆图片
     */
    @Excel(name = "车辆图片")
    private String imageUrl;

    /**
     * 赛车品牌
     */
    @Excel(name = "赛车品牌")
    private String brand;

    /**
     * 主驾驶
     */
    @Excel(name = "主驾驶")
    private String mainDriverId;

    /**
     * 副驾驶
     */
    @Excel(name = "副驾驶")
    private String viceDriverId;

    /**
     * 所属车队
     */
    @Excel(name = "所属车队")
    private String teamId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /**
     * 车牌
     */
    @Excel(name = "车牌")
    private String LicensePlate;

    /**
     * 车辆终端
     */
    @Excel(name = "车辆终端")
    private String cheliangzhongduan;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setVehicleCode(String vehicleCode) {
        this.vehicleCode = vehicleCode;
    }

    public String getVehicleCode() {
        return vehicleCode;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getBrand() {
        return brand;
    }

    public void setMainDriverId(String mainDriverId) {
        this.mainDriverId = mainDriverId;
    }

    public String getMainDriverId() {
        return mainDriverId;
    }

    public void setViceDriverId(String viceDriverId) {
        this.viceDriverId = viceDriverId;
    }

    public String getViceDriverId() {
        return viceDriverId;
    }

    public void setTeamId(String teamId) {
        this.teamId = teamId;
    }

    public String getTeamId() {
        return teamId;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setLicensePlate(String LicensePlate) {
        this.LicensePlate = LicensePlate;
    }

    public String getLicensePlate() {
        return LicensePlate;
    }

    public void setCheliangzhongduan(String cheliangzhongduan) {
        this.cheliangzhongduan = cheliangzhongduan;
    }

    public String getCheliangzhongduan() {
        return cheliangzhongduan;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("vehicleCode", getVehicleCode())
                .append("imageUrl", getImageUrl())
                .append("brand", getBrand())
                .append("mainDriverId", getMainDriverId())
                .append("viceDriverId", getViceDriverId())
                .append("teamId", getTeamId())
                .append("createdAt", getCreatedAt())
                .append("LicensePlate", getLicensePlate())
                .append("cheliangzhongduan", getCheliangzhongduan())
                .toString();
    }
}
